import { get, post, download } from '@/utils/request'

export default class OnlineDictController {
  static list(params) {
    return post(`/service-workflow/b/form/onlineDict/v1/list`, params)
  }

  static view(params) {
    return get(`/service-workflow/b/form/onlineDict/v1/view`, params)
  }

  static export(params, fileName) {
    return download(`/service-workflow/b/form/onlineDict/v1/export`, params, fileName)
  }

  static add(params) {
    return post(`/service-workflow/b/form/onlineDict/v1/add`, params)
  }

  static update(params) {
    return post(`/service-workflow/b/form/onlineDict/v1/update`, params)
  }

  static delete(params) {
    return post(`/service-workflow/b/form/onlineDict/v1/delete`, params)
  }
}
